import Service from "../utils/request";

// 400
export const test400 = (data: any) => {
  return Service({
    url: "/api/user",
    data,
    method: "post",
  });
};
// 404
export const test404 = (data: any) => {
  return Service({
    url: "/api/test404",
    data,
    method: "post",
  });
};

// 编辑用户
export const test500 = ({ id, data }: any) => {
  return Service({
    url: "/api/user",
    params: { id: id },
    data,
    method: "patch",
  });
};
